|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.globalplatform.contactless.GPCLSystem
public class GPCLSystem
This class exposes a subset of the behavior of the CRS (OPEN extension) to other on-card components.
| Field Summary | |
|---|---|
static short |
AFI_ANY
Constant to use with getNextGPCLRegistryEntry(GPCLRegistryEntry, short)
to look for all Contactless applications that belong to any family |
static short |
AFI_DATA_STORAGE
Constant to use with getNextGPCLRegistryEntry(GPCLRegistryEntry, short)
to look for applications that belong to the Data Storage family |
static short |
AFI_FINANCIAL
Constant to use with getNextGPCLRegistryEntry(GPCLRegistryEntry, short)
to look for applications that belong to the Financial family |
static short |
AFI_GAMING
Constant to use with getNextGPCLRegistryEntry(GPCLRegistryEntry, short)
to look for applications that belong to the Gaming family |
static short |
AFI_IDENTIFICATION
Constant to use with getNextGPCLRegistryEntry(GPCLRegistryEntry, short)
to look for applications that belong to the Identification family |
static short |
AFI_MEDICAL
Constant to use with getNextGPCLRegistryEntry(GPCLRegistryEntry, short)
to look for applications that belong to the Medical family |
static short |
AFI_MULTIMEDIA
Constant to use with getNextGPCLRegistryEntry(GPCLRegistryEntry, short)
to look for applications that belong to the Multimedia family |
static short |
AFI_TELECOMMUNICATION
Constant to use with getNextGPCLRegistryEntry(GPCLRegistryEntry, short)
to look for applications that belong to the Telecommunication family |
static short |
AFI_TRANSPORT
Constant to use with getNextGPCLRegistryEntry(GPCLRegistryEntry, short)
to look for applications that belong to the Transport family |
static short |
CARD_INFO_COUNTER_UPDATE
The global CRS update counter. |
static short |
CARD_INFO_CURRENT_PROTOCOL_DATA_TYPE_A
The requested information is the CURRENT_PROTOCOL_DATA_TYPE_A (i.e. encoded as the content of sub tag 'A0' of INSTALL system parameter Tag '86'). |
static short |
CARD_INFO_CURRENT_PROTOCOL_DATA_TYPE_B
The requested information is the CURRENT_PROTOCOL_DATA_TYPE_B (i.e. encoded as the content of sub tag 'A0' of INSTALL system parameter Tag '87'). |
static short |
CARD_INFO_CURRENT_PROTOCOL_DATA_TYPE_F
The requested information is the CURRENT_PROTOCOL_DATA_TYPE_F (reserved for future usage). |
static short |
CARD_INFO_DEFAULT_PROTOCOL_DATA_TYPE_A
The requested information is the DEFAULT_PROTOCOL_DATA_TYPE_A (i.e. content of INSTALL system parameter Tag '86' when sent to update OPEN parameters). |
static short |
CARD_INFO_DEFAULT_PROTOCOL_DATA_TYPE_B
The requested information is the DEFAULT_PROTOCOL_DATA_TYPE_B (i.e. content of INSTALL system parameter Tag '87' when sent to update OPEN parameters). |
static short |
CARD_INFO_DEFAULT_PROTOCOL_DATA_TYPE_F
The requested information is the DEFAULT_PROTOCOL_DATA_TYPE_F (reserved for future usage). |
static byte |
GPCL_CL_APPLICATION
The OPEN uses this identifier to retrieve the CLApplet interface implemented by an applet. |
static byte |
GPCL_CREL_APPLICATION
The OPEN uses this identifier to retrieve the CRELApplication interface implemented by an applet. |
static byte |
GPCL_CRS_APPLICATION
The OPEN uses this identifier to retrieve the CRSApplication interface implemented by an applet. |
static short |
GPCL_INTERFACE_ISO14443
This constant is used with setCommunicationInterface(short, boolean)
to manage a ISO14443 based communication interface. |
| Method Summary | |
|---|---|
static boolean |
checkCommunicationInterfaceAccess(GPRegistryEntry entry,
short sInterface)
Checks whether a GPRegistryEntry can be accessed through specified communication interface. |
static short |
getCardCLInfo(byte[] buffer,
short offset,
short info)
Retrieve the OPEN's conctactless parameters. |
static GPCLRegistryEntry |
getGPCLRegistryEntry(javacard.framework.AID oAID)
Gets a reference to a GPCLRegistryEntry interface. |
static GPCLRegistryEntry |
getNextGPCLRegistryEntry(GPCLRegistryEntry oEntry,
short sFamily)
Iterates over contactless applets belonging to a particular application family. |
static void |
setCommunicationInterface(short sInterface,
boolean onOff)
Switches ON or OFF persistently the specified communication interface at GlobalPlatform card level. |
static void |
setVolatilePriority(GPCLRegistryEntry oEntry)
Sets up or discards the volatile priority. |
| Methods inherited from class java.lang.Object |
|---|
equals |
| Field Detail |
|---|
public static final byte GPCL_CL_APPLICATION
CLApplet interface implemented by an applet.
public static final byte GPCL_CRS_APPLICATION
CRSApplication interface implemented by an applet.
public static final byte GPCL_CREL_APPLICATION
CRELApplication interface implemented by an applet.
public static final short AFI_ANY
getNextGPCLRegistryEntry(GPCLRegistryEntry, short)
to look for all Contactless applications that belong to any family
public static final short AFI_TRANSPORT
getNextGPCLRegistryEntry(GPCLRegistryEntry, short)
to look for applications that belong to the Transport family
public static final short AFI_FINANCIAL
getNextGPCLRegistryEntry(GPCLRegistryEntry, short)
to look for applications that belong to the Financial family
public static final short AFI_IDENTIFICATION
getNextGPCLRegistryEntry(GPCLRegistryEntry, short)
to look for applications that belong to the Identification family
public static final short AFI_TELECOMMUNICATION
getNextGPCLRegistryEntry(GPCLRegistryEntry, short)
to look for applications that belong to the Telecommunication family
public static final short AFI_MEDICAL
getNextGPCLRegistryEntry(GPCLRegistryEntry, short)
to look for applications that belong to the Medical family
public static final short AFI_MULTIMEDIA
getNextGPCLRegistryEntry(GPCLRegistryEntry, short)
to look for applications that belong to the Multimedia family
public static final short AFI_GAMING
getNextGPCLRegistryEntry(GPCLRegistryEntry, short)
to look for applications that belong to the Gaming family
public static final short AFI_DATA_STORAGE
getNextGPCLRegistryEntry(GPCLRegistryEntry, short)
to look for applications that belong to the Data Storage family
public static final short CARD_INFO_DEFAULT_PROTOCOL_DATA_TYPE_A
public static final short CARD_INFO_DEFAULT_PROTOCOL_DATA_TYPE_B
public static final short CARD_INFO_DEFAULT_PROTOCOL_DATA_TYPE_F
public static final short CARD_INFO_CURRENT_PROTOCOL_DATA_TYPE_A
public static final short CARD_INFO_CURRENT_PROTOCOL_DATA_TYPE_B
public static final short CARD_INFO_CURRENT_PROTOCOL_DATA_TYPE_F
public static final short CARD_INFO_COUNTER_UPDATE
GPCLRegistryEntry
information is updated, this counter is incremented. Used to indicate
off-card applications the need for synchronization.
public static final short GPCL_INTERFACE_ISO14443
setCommunicationInterface(short, boolean)
to manage a ISO14443 based communication interface.
| Method Detail |
|---|
public static GPCLRegistryEntry getGPCLRegistryEntry(javacard.framework.AID oAID)
GPCLRegistryEntry interface.
oAID - AID of the applet whose GPCLRegistryEntry instance, if
available, shall be retrieved. If null, the GPCLRegistryEntry
instance corresponding of the applet invoking this method, if available, is returned.
GPCLRegistryEntry interface object, or null
public static GPCLRegistryEntry getNextGPCLRegistryEntry(GPCLRegistryEntry oEntry,
short sFamily)
Contactless applets are those applets that have access to the contactless
interface (GPCL_INTERFACE_ISO14443), as specified by Communication
Interface Access Parameters (see INSTALL system parameter Tag 'A5' or, if
not present, implementation-dependent default OPEN values).
This method returns the GPCLRegistryEntry object for the next
contactless applet that matches the search criteria. This method shall only
return entries corresponding to applets currently having access to the
contactless interface.
oEntry - oEntry is null, this method returns the first Entry matching the specified family.
oEntry is not null, and represents an application matching the specified family,
this method retrieves the next application matching the specified family, otherwise it shall return null.
oEntry points to the last application matching the specified family, the method shall return null.
sFamily - the Family Identifier to look for.
GPCLRegistryEntry interface object of the contactless applet matching the search
criteria; null is returned if no application is matching or the end of the list is reached.
ISOException - with reason code
ISO7816.SW_CONDITIONS_NOT_SATISFIED if
oEntry is not
directly associated with this Security Domain, and
oEntry is not
referencing this CREL Application.
java.lang.SecurityException - if oEntry is not a JCRE-owned instance of GPCLRegistryEntry.AFI_ANY,
AFI_TRANSPORT,
AFI_TELECOMMUNICATION,
AFI_MULTIMEDIA,
AFI_MEDICAL,
AFI_IDENTIFICATION,
AFI_GAMING,
AFI_FINANCIAL,
AFI_DATA_STORAGEpublic static void setVolatilePriority(GPCLRegistryEntry oEntry)
oEntry - null value discards the volatile priorityGPCLRegistryEntry to set in the volatile priority
If this entry corresponds to a Head Application, then
all applications of corresponding group are part of the volatile priority
in the same order as in the GlobalPlatform registry.ISOException - with reason code
ISO7816.SW_CONDITIONS_NOT_SATISFIED
if the caller has not GPCLRegistryEntry.PRIVILEGE_CONTACTLESS_ACTIVATION or the GPCLRegistryEntry corresponds to a Member Applicationjava.lang.SecurityException - if oEntry is not a JCRE-owned instance of GPCLRegistryEntry.
public static short getCardCLInfo(byte[] buffer,
short offset,
short info)
buffer - where requested information shall be writtenoffset - within buffer, where requested information shall be writteninfo - any CARD_INFO_XX constant.
offset + length of data written in buffer)
ArrayIndexOutOfBoundsException - if storing the Application Information bytes would cause access
outside array bounds or the offset is negative.
java.lang.NullPointerException - if buffer is null
public static void setCommunicationInterface(short sInterface,
boolean onOff)
sInterface - GPCL_INTERFACE_ISO14443onOff - true to switch ON, false to switch OFF
ISOException - with reason code ISO7816.SW_CONDITIONS_NOT_SATISFIED if the caller has not
GPCLRegistryEntry.PRIVILEGE_CONTACTLESS_ACTIVATION when managing the GPCL_INTERFACE_ISO14443
ISO7816.SW_WRONG_DATA if sInterface identifier is not defined.
public static boolean checkCommunicationInterfaceAccess(GPRegistryEntry entry,
short sInterface)
GPRegistryEntry can be accessed through specified communication interface.
sInterface - GPCL_INTERFACE_ISO14443
ISOException - with reason code ISO7816.SW_WRONG_DATA if sInterface identifier is not defined.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||